import { ccs } from "./services";

export class spriteClass {
     
    setSprite(node: cc.Node, spriteUrl: string) {
        ccs.resMgr.loadRes<cc.SpriteFrame>(spriteUrl, cc.SpriteFrame).then(res => {
            node.getComponent(cc.Sprite).spriteFrame = res;
        })
    }
}